﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;

namespace shop.Web.Controllers
{
    /// <summary> 代发 </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DaifaController : ControllerBase
    {
        /// <summary> 调用影刀查询代发信息 </summary>
        [HttpGet]
        public async Task BeginQueryNeedInfo()
        {
            //通过修改文件内容, 让影刀触发
#if DEBUG
            var ydFile = @"C:\Users\mazh\Documents\daifa\daifa1.log";
#else
            var ydFile = @"C:\Users\mazh\Documents\daifa\daifa1.log";

#endif

            await System.IO.File.WriteAllTextAsync(ydFile, DateTime.Now.ToString());
        }





    }
}
